package com.zch.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zch.dao.ZhikuTypeMapper;
import com.zch.dao.model.ZhikuType;
import com.zch.dao.model.ZhikuTypeExample;
import com.zch.daoEx.ZhikuTypeMapperEx;
import com.zch.daoEx.model.ZhikuEx;
import com.zch.daoEx.model.ZhikuTypeEx;

@Service
public class ZhikuTypeService {
	@Autowired
	private ZhikuTypeMapper zhikuTypeMapper;
	
	@Autowired
	private ZhikuTypeMapperEx zhikuTypeMapperEx;

	public int countByExample(ZhikuTypeExample example) {
		return this.zhikuTypeMapper.countByExample(example);
	}

	public ZhikuType selectByPrimaryKey(String id) {
		return this.zhikuTypeMapper.selectByPrimaryKey(id);
	}

	public List<ZhikuType> selectByExample(ZhikuTypeExample example) {
		return this.zhikuTypeMapper.selectByExample(example);
	}

	public int deleteByPrimaryKey(String id) {
		return this.zhikuTypeMapper.deleteByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(ZhikuType record) {
		return this.zhikuTypeMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(ZhikuType record) {
		return this.zhikuTypeMapper.updateByPrimaryKey(record);
	}

	public int deleteByExample(ZhikuTypeExample example) {
		return this.zhikuTypeMapper.deleteByExample(example);
	}

	public int updateByExampleSelective(ZhikuType record, ZhikuTypeExample example) {
		return this.zhikuTypeMapper.updateByExampleSelective(record, example);
	}

	public int updateByExample(ZhikuType record, ZhikuTypeExample example) {
		return this.zhikuTypeMapper.updateByExample(record, example);
	}

	public int insert(ZhikuType record) {
		return this.zhikuTypeMapper.insert(record);
	}

	public int insertSelective(ZhikuType record) {
		return this.zhikuTypeMapper.insertSelective(record);
	}
	
	public List<ZhikuTypeEx> selectByParentId(String parentId) {
        return this.zhikuTypeMapperEx.selectByParentId(parentId);
    }
	
	public List<ZhikuTypeEx> selectList(Map<String, Object> map) {
        return this.zhikuTypeMapperEx.selectList(map);
    }   
}
